<?php
/**
 * @author spenceryg
 * @date 2022/11/24
 * @time 10:08 下午
 * @focus love & life
 */

namespace app\admin\controller\sys\validate;

class AdminAccessValidate extends \think\Validate
{
    protected $rule = [
        'name' => 'require|unique:admin_access',
        'path' => 'require'
    ];

    protected $message = [
        'name.require' => '权限名称必须',
        'name.unique' => '权限名称已存在',
        'path.require' => '权限功能必须',
    ];
}
